/* Copyright 2014 Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
    http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. */

// btn
.table > thead > tr > th,
.table > thead > tr > td,
.table > tbody > tr > th,
.table > tbody > tr > td,
.table > tfoot > tr > th,
.table > tfoot > tr > td {
    vertical-align: middle;
}

.btn > span {
    margin-left: 5px;
}

.td-viewer {
    opacity: 0.6;
    margin : 7px;
    &:hover{
        opacity: 1;
    }
}

// nav sidebar control
.nav-control {
    color: #777;
    cursor: pointer;
    font-size: 16px;
    margin-top: 5px;
}

.sidebar-close {
    float: right;
    margin-right: 6px;
    display: none;
    @media (min-width: $screen-md-min) {
        display: block;
    }
}

.sidebar-open {
    float: left;
    margin-left: 30px;
    display: none;
    @media (min-width: $screen-md-min) {
        display: block;
    }
}

// override content

/*.content{
  padding: 30px 40px 40px !important;
}*/

// loading
.loading {
    position: fixed;
    top: 0;
    text-align: center;
    width: 100%;
    height: 100%;
    background-color: #eaeaea;
    z-index: 3000;
    opacity: 0.5;
    padding-top: 200px;
}

// save
.dropdown-divider {
    height: 1px;
    margin: .5rem 0;
    overflow: hidden;
    background-color: #e5e5e5;
}

.dropdown-item {
    cursor: pointer;
}

// back to list
.backtolist {
    background-image: url(/assets/svg/back.svg);
    background-repeat: no-repeat;
    background-size: contain;
    width: 30px;
    height: 40px;
    margin: 5px;
}

.backtolist:hover {
    background-image: url(/assets/svg/back-hover.svg);
}


/* env setting */

.env-setting-closed {
    position: fixed;
    top: 0;
    bottom: 0;
    right: -700px;
    width: 600px;
    background-color: #232323;
    -webkit-transition: right 0.3s ease-in-out;
    -o-transition: right 0.3s ease-in-out;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 20px 20px;
    color: #a1a1a1;
}

.env-setting-opened {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0px;
    width: 600px;
    background-color: #232323;
    -webkit-transition: right 0.3s ease-in-out;
    -o-transition: right 0.3s ease-in-out;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding: 20px 20px;
    color: #a1a1a1;
    overflow: auto;
}

.pipeline-open-env {
    position: fixed;
    top: 0;
    right: -100px;
    background-color: #232323;
    color: #a1a1a1;
    z-index: 1000;
    -webkit-border-top-left-radius: 5px;
    -moz-border-top-left-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-bottom-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 10px;
    font-size: 24px;
    -webkit-transition: right 0.3s ease-in-out;
    -o-transition: right 0.3s ease-in-out;
    transition: right 0.3s ease-in-out;
}

.pipeline-close-env {
    position: fixed;
    top: 0;
    right: 600px;
    background-color: #232323;
    color: #a1a1a1;
    z-index: 1000;
    -webkit-border-top-left-radius: 5px;
    -moz-border-top-left-radius: 5px;
    border-top-left-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-bottom-left-radius: 5px;
    border-bottom-left-radius: 5px;
    padding: 10px;
    font-size: 24px;
    -webkit-transition: right 0.3s ease-in-out;
    -o-transition: right 0.3s ease-in-out;
    transition: right 0.3s ease-in-out;
    cursor: pointer;
}

.env-row {
    background-color: #313131;
    width: 98%;
    height: 50px;
    margin: 30px 1%;
}

.env-key-div {
    width: 45%;
    float: left;
    padding: 8px;
}

.env-value-div {
    width: 45%;
    float: left;
    margin-left: 10px;
    padding: 8px;
}

.pp-env-input {
    background-color: #a2a2a2;
    color: #000;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
}

.env-remove-div {
    width: 50px;
    height: 50px;
    float: right;
    background-color: #424242;
    padding: 16px;
    cursor: pointer;
    font-size: 18px;
}

.env-remove-div:hover {
    background-color: #696969;
}

.new-kv,
.rm-kv,
.close-env,
.c-new-kv,
.c-rm-kv {
    cursor: pointer;
    // margin-top:10px
}

legend {
    height: 35px;
    border-bottom: 1px solid #787878;
    font-size: 15px;
    border-bottom: 1px solid #e5e5e5;
}

// list
.list-content {
    padding: 20px;
}

.ppview,
.sequence-detail {
    background-color: #d9f7e8;
    color: #A1D2BA;
    border: none;
}

.pp-row {
    height: 50px;
    background-color: #f7f7f7;
}

.ppversion-row {
    height: 50px;
    background-color: #fbfbfb;
}

.pptd {
    padding-top: 15px !important
}

.treeclose,
.treeopen {
    cursor: pointer;
}

.state-fail {
    background-image: url(/assets/images/state-fail.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}

.state-success {
    background-image: url(/assets/images/state-success.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}

.state-norun {
    background-image: url(/assets/images/state-norun.jpg);
    background-repeat: no-repeat;
    background-size: contain;
}

.state-desc {
    margin-left: 5px;
    margin-bottom: 20px;
    float: left;
}

.state-icon-desc {
    width: 20px;
    height: 20px;
    float: left;
}

.state-label-desc {
    float: right;
    margin: 2px 8px;
}

.state-list {
    margin-left: 5px;
    float: left;
}

.state-icon-list {
    width: 30px;
    height: 30px;
    float: left;
}

.state-label-list {
    float: right;
    margin: 7px 20px;
}

// pipeline run and stop
.pipeline-on {
    background-image: url(/assets/images/pipeline-on.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 65px;
    height: 26px;
    display: inline-block;
    float: left;
    margin: 6px 20px;
    cursor: pointer;
}

.pipeline-off {
    background-image: url(/assets/images/pipeline-off.png);
    background-repeat: no-repeat;
    background-size: contain;
    width: 65px;
    height: 26px;
    display: inline-block;
    float: left;
    margin: 6px 20px;
    cursor: pointer;
}

.pipeline-on:hover {
    opacity: 0.5;
}

.pipeline-off:hover {
    opacity: 0.5;
}

// history log textarea 
.history-log {
    white-space: nowrap;
    width: 100%;
    height: 30px;
    border: none;
    border-bottom: 1px solid #eee;
    padding-left: 15px;
}

#logs-tr td {
    white-space: nowrap;
    vertical-align: middle;
}

button.close {
    font-size: 4rem;
    position: absolute;
    top: 20px;
    right: 20px;
}

.dialogWindow {
    width: 60%;
    padding: 2% 5%;
    background-color: #fff;
    border-radius: 8px;
    margin: 5% auto;
    position: relative;
    overflow: hidden;
}

.mcover {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, .5);
    z-index: 100;
}

.dialogContant {
    white-space: normal;
    word-break: break-all;
    word-wrap: break-word;
    overflow: auto;
    & pre {
        white-space: normal;
    }
}

// designer split
.designer-split {
    cursor: row-resize;
    width: 100%;
    background-color: #ccc;
    text-align: center;
    color: #7d7d7d
}
